/*
    * Author:   Sander
    * Date:     12-apr-2011
    * Name:     BitmapMaterial
    * Version:  1.0
    *
    * This code is property of Sander blahblahblah copyright blahblah.
*/


package javaraytracer.Materials;

import javaraytracer.Vec3;

//PENDING:add function/property description
public class BitmapMaterial extends Material
{
	
	public BitmapMaterial(String file)
	{
		super(Vec3.ONE);
		loadImage(file);
	}
	public BitmapMaterial(String file, Vec3 col, Vec3 am, float ref, float sp)
	{
		super(col, am, ref, sp);
		loadImage(file);
	}
	public BitmapMaterial(String file, Vec3 col, Vec3 am, float ref, float sp, boolean cast)
	{
		super(col, am, ref, sp, cast);
		loadImage(file);
	}
	public BitmapMaterial(String file, Vec3 col, Vec3 am, float ref, float sp, boolean cast, boolean shadow)
	{
		super(col, am, ref, sp, cast, shadow);
		loadImage(file);
	}
	public BitmapMaterial(Material other, String file)
	{
		super(other);
		loadImage(file);
	}
	
	private void loadImage(String file)
	{
		diffuseMap = new Image(file);
	}
}
